﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T.FAS.Runtime.Metadata.Entity.DataModel
{
    /// <summary>
    /// 分片策略
    /// </summary>
    [Serializable]
    public class ColumnShardingStrategy : SystemBase
    {
        public string ID { get; set; }
        public string DisplayName { get; set; }
        public string ShardingColumnID { get; set; }
        public string DataObjectID { get; set; }
        /// <summary>
        /// 分区策略
        /// </summary>
        public PartitionStrategy PartitionStrategy { get; set; }
        /// <summary>
        /// 冷数据分区表保留个数 (-1表示永久保留)
        /// </summary>
        public int ColdDataKeep { get; set; }
        /// <summary>
        /// 温数据分区表保留个数(-1:永久)
        /// </summary>
        public int WarmDataKeep { get; set; }
        /// <summary>
        /// 热数据分区表保留个数(-1:永久)
        /// </summary>
        public int HotDataKeep { get; set; }
    }
}
